package main;

import java.io.IOException;
import java.util.Vector;

import mt.C2EMT;


public class Util {
	public static int getSentenceLength(String sentence){
		return C2EMT.segment(sentence).split(" +").length;
	}
	
	public static void countAveLength(String filePath) throws IOException{
		
		int i =0;
		Vector<String> v =U.file2vector(filePath);
		
		for(String s :v)
			i+=getSentenceLength(s);
		System.out.println((double)i/v.size());
		
	}
	
	public static void main(String[] args) {
		getSentenceLength("");
	}
}
